updated the ftp script to allow specify the path with or without the slash