move existing maas option earlier in option parsing

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
use higher level Path module

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>