This can be removed if you do the above change, as the command in line 39 will take you directory to the dir