Updated to initialise upload directories with PWD