Move bash script to separate file