added quotes to mkdir and copy command for osx support