Renamed method file_or_dir_delete to remove_file_or_dir_if_no to be easier to understand and debug and removed puts since that is only needed for the cammand line version