added double quotes to all directory and filename related variables, tested for all commands. Fixed #26