refactored

added helper function for adding new file to the gcc_command