detect project root path with other view if active view does not have file name
run `rake build' instead of `rake build:simulator'

Because OS X platform does not support `rake build:simulator' task.
refactor
add error handling