Fix double future resolve in file system

Fixes http://teampulse.telerik.com/view#item/277062
Merge pull request #485 from Icenium/totev/fix-double-future-resolve

Fix double future resolve in file system
Fix setting of profile-dir

Set profile-dir option with commonOptions setProfileDir function. Add tests for setProfileDir function to make sure correct value is used.
Merge pull request #486 from Icenium/vladimirov/fix-profile-dir

Fix setting of profile-dir
Add tests for -- arguments

Add tests for null value, undefined value, number and NaN.
PR Comments - remove test

Remove test which checks if string value with spaces is rejected from yargs arguments. The reasons is the change in the validation.
Refactoring tests

Get back test to validate if passed parameter value has only whitespaces. Test for number uses string instead of number. Remove test for NaN.