Added check for existance of file to compile
Changed script to allow compilation of file without serial connection