Added Syntax Checking to default Rake task

excluded the pkg directory from syntax checking
Added syntax checking to the default rake action.