fixed path resolving in shell (not always looking in current dir first)