Added pre- and post-commands to compile and upload