Makes update.sh detect directories instead of update.sh