Fixed directory creation (apparently stage.show() locks the thread)