A new way to lock the screen, found on https://apple.stackexchange.com/questions/80058/lock-screen-command-one-liner/123738
Adding few more ignores for generated files
Adding new lock screen method that works without nasty side-effects in OSX Mavericks