Removed 'then' from if statement

Caused compile error.
Added path variable for mbed
Merge pull request #2 from AndSk/master

Added path variable for mbed