Made which not dependant on a command, added crontab replacement, made cd portable and made 'command' more realistic