Added tests for file permisssions mask
fix bug of not checking permission of src, add tests
Merge branch 'drunkhacker-master'

Conflicts:
	directory-copy.js