Move copy_dir_ignore and get_highest_numdir to util module
Add a new function for executing parsed commands