Use cwd() from the Cwd module instead of $ENV{PWD}.
Use cwd() from the Cwd module instead of $ENV{PWD}.

Use -d instead of -e to test for directories.

Ensembl/ensembl,mjg17/ensembl,mjg17/ensembl,james-monkeyshines/ensembl,james-monkeyshines/ensembl,mjg17/ensembl,danstaines/ensembl,at7/ensembl,muffato/ensembl,muffato/ensembl,Ensembl/ensembl,at7/ensembl,danstaines/ensembl,james-monkeyshines/ensembl,at7/ensembl,willmclaren/ensembl,danstaines/ensembl,james-monkeyshines/ensembl,willmclaren/ensembl,mjg17/ensembl,Ensembl/ensembl,at7/ensembl,Ensembl/ensembl,muffato/ensembl,muffato/ensembl