Better path checking for bin/scripts