bash script fixes on path