fixing current dir part of the script