Write permissions now checked and handled correctly

When users attempt to upload fasta/genbank/embl files, vectormaps or
generate pdfs a check is performed if the directories are writeable and
an appropriate error is thrown in case they are not !