Sort out directory positioning for the script