Fixed problem with resource directory, updated buildapp