Better handling of path in shell scripts